<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>发布内容</title>
	<meta name="renderer" content="webkit"> 
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">  
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 
	<meta name="apple-mobile-web-app-status-bar-style" content="black"> 
	<meta name="apple-mobile-web-app-capable" content="yes">  
	<meta name="format-detection" content="telephone=no"> 
	<link rel="stylesheet" type="text/css" href="/Public/admin/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="/Public/admin/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="/Public/admin/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="/Public/admin/css/personal.css" media="all">
	<script type="text/javascript" src="/Public/admin/layui/jquery-1.8.3.min.js"></script>
	<style type="text/css">
		.divimg{
			padding: 10px 0 0 5px;
		}
		.divimg img{
			display: inline-block;
			margin-left: 10px;
			width: 100px;
			height: 100px;
		}
	</style>
</head>
<body>
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
	<div class="layui-tab-content">
		<div class="layui-tab-item layui-show">
			<form class="layui-form" action="/admin/Content/add/cateid/<?php echo ($cateid); ?>/modelid/<?php echo ($modelid); ?>" method="post">
				<input type="hidden" name="modelid" value="<?php echo ($modelid); ?>">
				<input type="hidden" name="catid" value="<?php echo ($cateid); ?>">
				<table class="layui-table">
					<colgroup>
						<col width="350">
						<col>
					</colgroup>
					<thead>
						<tr>
							<th colspan="2"><label>发布内容</label></th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td><label>栏目</label></td>
							<td>
								<h4><?php echo ($catename); ?></h4>
							</td>
						</tr>
						<?php if(is_array($dataform)): $i = 0; $__LIST__ = $dataform;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$formhtml): $mod = ($i % 2 );++$i; echo ($formhtml); endforeach; endif; else: echo "" ;endif; ?>
					</tbody>
				</table>
				<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn" type="submit">立即提交</button>
							<button type="reset" class="layui-btn layui-btn-primary">重置</button>
						</div>
				</div>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript" src="/Public/admin/layui/layui.js"></script>
<script>
layui.use(['layer','form','laydate'], function(){
	var layer = layui.layer,
	laydate = layui.laydate,
	form = layui.form();
});

function openurl(id,img){
	 layer.open({
		type: 2,
		area: ['700px','500px'],
		fixed: false, //不固定
		maxmin: true,
		content: '/admin/Upload/fields/id/'+id+'/type/'+img
	});
}
// layui.use('form', function(){  //如果只加载一个模块，可以不填数组。如：layui.use('form')
//   var form = layui.form(); //获取form模块
// });
</script>
</body>
</html>